<template>
  <router-view :key="key" v-slot="{ Component }">
    <keep-alive>
      <component :is="Component" />
    </keep-alive>
  </router-view>
</template>
<script setup>
import { computed } from "vue";
import { useRoute } from "vue-router";
const route = useRoute();
const key = computed(() => route.fullPath);
</script>
<style lang="scss">
#app {
  font-family: Arial, "Droid Sans", "Hiragino Sans GB", Simsun, STXihei,
    sans-serif, "Microsoft YaHei";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
}
</style>
